<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="csoei.bbs.Dao.TopicDao"%><%@ page import="csoei.bbs.Dao.CategoryDao"%><%@ page import="java.sql.ResultSet"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="css/frame.css" type="text/css" />
<title><% String tid=request.getParameter("tid");out.print(tid); %></title>
</head>
<body><% String cid="";ResultSet rs=CategoryDao.getCidByTid(tid);rs.next();cid=rs.getString(1);
ResultSet topic=TopicDao.getTopicById(tid);topic.next();String title =topic.getString(1);String username=topic.getString(2);String content=topic.getString(3); String uid=topic.getString(4);
String outstr="<a href=\"bbscat.jsp?cid="+cid+"\">返回主题列表</a><div class=\"topic\"><div class=\"title\">"+title+"</div><div class=\"user\"><a href=\"user.jsp?uid="+uid+"\">作者："+username+"<a/></div><div class=\"content\">"+content+"</div></div>";
out.println(outstr);%>
</body>
</html>
